import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';
@Entity({ name: 'story' })
export class Story {
  @PrimaryGeneratedColumn()
  id: number;
  @Column({
    type: 'varchar',
    length: 100,
    default: '',
  })
  title: string;
  @Column({
    type: 'varchar',
    length: 100,
    default: '',
  })
  hint: string;

  @Column({
    type: 'varchar',
    default: '',
  })
  url: string;
  @Column({
    type: 'varchar',
    default: '',
  })
  image_hue: string;
  @Column({
    type: 'longtext',
  })
  body: string;
  @Column({
    type: 'varchar',
    default: '',
  })
  css: string;
  @Column({
    type: 'varchar',
    default: '',
  })
  ga_prefix: string;
  @Column({
    type: 'int',
    default: 0,
  })
  type: number;
  @CreateDateColumn()
  createdAt: Date;
}
